from django.conf.urls import url
from views import *

app_name = 'blog'
urlpatterns = [
    url(r'^$', blog_list, name='blog_list'), 
    url(r'^list/type=(\S+)/$', blog_list, name='blog_list'),
    url(r'^pic/$', blog_pic, name='blog_pic'),
    url(r'^pic/(\d+)/$', blog_pic_view, name='blog_pic_view'),
     url(r'^pic/comment/(\d+)/$', blog_pic_comment, name='blog_pic_comment'),
    url(r'^happy/$', blog_happy, name='blog_happy'),
    url(r'^happy/add/$', blog_happy_add, name='blog_happy_add'),
    url(r'^travel/$', blog_travel, name='blog_travel'),
    url(r'^travel/(\d+)/$', blog_travel_view, name='blog_travel_view'),
    url(r'^learn/$', blog_learn, name='blog_learn'),
    url(r'^learn/(\d+)/$', blog_learn_type, name='blog_learn_type'),
    url(r'^comment/(\d+)/$', blog_comment, name='blog_comment'),
    url(r'^profile/$', blog_profile, name='blog_profile'),
    url(r'^article/(\d+)/$', blog_view, name='blog_view'),
    url(r'^userpass/$', home, name='home'),
    url(r'^login/$', blog_login, name='blog_login'),
    url(r'^logout/$',blog_logout, name='blog_logout'),
    url(r'^add1/$',blog_add, name='blog_add'),
    url(r'^xysy/$',blog_xysy, name='blog_xysy'),
     url(r'^leavemsg/add/$',blog_leave_msg, name='blog_leave_msg'),
]